package com.zhaoyan.okgorxjavademo.model;


import com.zhaoyan.okgorxjavademo.Contacts;
import com.zhaoyan.okgorxjavademo.Contacts1;
import com.zhaoyan.okgorxjavademo.Login;
import com.zhaoyan.okgorxjavademo.LzyResponse;
import com.zhaoyan.okgorxjavademo.base.BasePresenter;
import com.zhaoyan.okgorxjavademo.base.BaseView;

import java.util.List;

/**
 * Created by cxy on 2017/12/19.
 */

public interface Main {
    interface View extends BaseView {
        void getContacatsSuccess1(Contacts1 contacts);
        void getContacatsSuccess(LzyResponse<List<Contacts>> contacts);
        void loginSuccess(LzyResponse<Login> contacts);
        void mainFail(Throwable throwable);
    }

    interface Presenter extends BasePresenter<View> {
        void getContacts(String orgCode, String name);
        void getContacts1();
        void login();
    }
}
